<!DOCTYPE html>
<html lang="en">


<head th:replace="~{_fragments:: head(~{::title})}">

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>标签</title>

    <link rel="stylesheet" href="../static/semantics-dist/semantic.min.css" th:href="@{/semantics-dist/semantic.min.css}">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">

    <script src="../static/js/jquery-3.7.1.min.js" th:src="@{/js/jquery-3.7.1.min.js}" ></script>
    <script src="../static/semantics-dist/semantic.min.js" th:src="@{/semantics-dist/semantic.min.js}" ></script>
</head>
</head>
<body>
<nav  th:replace="~{_fragments ::menu(n=3)}" class = "ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container"  >
        <div class="ui inverted secondary stackable menu">
            <h3 class="ui teal header item">T's BLOG</h3>
            <a class="m-item m-mobile-hidden item"> <i class="ui home icon">  </i>首页</a>
            <a class="m-item m-mobile-hidden item"> <i class="ui idea icon">  </i>分类</a>
            <a class="active m-mobile-hidden item"><i class="ui tags icon">  </i>标签</a>
            <a class="m-item m-mobile-hidden item"><i class="ui clone icon">  </i>归档</a>
            <a class="m-item m-mobile-hidden item"><i class="ui info icon"></i>关于我</a>
            <div class="right item">
                <div class="ui icon inverted input">
                    <input type="text" placeholder="搜索....">
                    <i class="ui search icon"></i>

                </div>
            </div>
        </div>

    </div>
    <a href="#" class="ui menu toggle m-mobile-show black button">
        <i class="sidebar icon m-top-right "></i>
    </a>
</nav>
<!--    中间内容 --><br><br>
<div class="m-container-small m-padded-tb-big">
    <div class="ui top attached  segment">
        <!--                        头部-->
        <div class="ui middle aligned two column grid">
            <!--                            two column 要一起 不分开-->
            <div class="  column">
                <h3 class="ui teal header">标签 </h3>
            </div>
            <div class="   right aligned column" >
                共
                <h2 class="ui orange header m-inline-block" th:text="${#arrays.length(tags)}">14</h2>
                个
<!--                todo 可以优化 显示隐藏的文章也被计入SUM-->
            </div>

        </div>
    </div>
    <!-- 标签部分 -->
    <div class="ui attached segment">

        <div class="ui basic segment">
            <a href="#" th:href="@{'/tags?page=0'+'&id=' +${tag.id }}"  th:classappend="${tag.id==activeTagId} ? 'teal'" th:each="tag : ${tags}"  class="ui   basic left pointing label m-margin-tb-tiny">
                <span th:text="${tag.name}">方法</span>   <div th:text="${#arrays.length(tag.blogs)}" class="detail">23</div>
            </a>
<!--/*-->
            <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">方法论
                <div class="detail">23</div>
            </a>
            <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">方法论
                <div class="detail">23</div>
            </a>
<!--*/-->
         </div>
    </div>
    <!--正文-->
    <div class="ui divider"></div>
    <div class="ui teal  attached segment">

        <div class="ui padded   segment m-padded-tb-large" th:each="blog :${page.content}">
            <div class="ui mobile reversed stackable  grid" >

                <div class="ui eleven wide column">


                    <div class="flex-container-tag">

                        <h3 class="ui header" ><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">深化单词</a></h3>
                        <p class="m-text" th:text="|${blog.description}......|"> 深化单词理解
                            上下文学习：将单词放入句子或短文中，理解其在具体语境中的含义和用法。并更好地理解其背后的文化和语境。
                            词根词缀：学习词根和词缀的知识，更容易记忆和推测新单词的含义。
                            同义词和反义词：并在写作和阅读中更灵活地运用。</p>
                        <!--                                    引入新的参数才会让描述换行 -->
                    </div>
                    <!--                                    引入新的参数才会让描述换行 -->


                    <div>
                        <div class="ui grid">
                            <div class="twelve wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img alt=""  class="ui avatar image"   th:src="@{${blog.user.avatar}}" > <!-- 头像 -->

                                        <div class="content">
                                            <a href="#" class="header" th:href="@{/user/{id}(id=${blog.user.id})}" th:text="${blog.user.nickname}">长野原美绪</a> <!-- 名字 -->
                                        </div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon" ></i> <span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2024-2-15</span>
                                    </div> <!-- 时间 -->
                                    <div class="item">
                                        <i class="eye icon"></i> <span th:text="${blog.views} ">55555</span>
                                    </div> <!-- 观看数 -->

                                </div>
                            </div>
                            <div class="ui right aligned middle aligned four wide  column m-padded-mini m-text-thin">
                                <a href="#" target="_blank" class="ui teal   basic  left pointing label" th:href="@{'/types?page=0'+'&id='+${blog.type.id }}" th:text="${blog.type.name}">认知升级</a>

                            </div>
                        </div>
                        <div class="row">
                            <div class="column">
                                <a href="#" th:href="@{'/tags?page=0'+'&id=' +${tag.id }}" class="ui  basic left pointing label ..m-padded-small-fortags small " th:classappend="${tag.id==activeTagId} ? 'teal'" th:each="tag : ${blog.tags}" th:text="${tag.name}">方法论</a>
                            </div>
                        </div>
                    </div>

<!--todo 2024年3月2日03:15:41 前端有空在调整没时间了md-->

                </div>
                <!--                                &lt;!&ndash;                        首图&ndash;&gt;-->

                <div class="five wide column">
                    <div class="image-wrapper">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                            <img  src="../static/images/mio1.png" th:src="@{${blog.firstPicture}}"  alt="" class="ui img3to2   image">
                        </a>
                    </div>
                </div>
            </div>
            <!--                        </div>-->
        </div>
<!--/*-->
        <div class="ui   vertical segment m-padded-tb-large ">]

            <div class="ui mobile reversed stackable   grid">

                <div class="ui eleven wide column">


                    <h3 class="ui header">深化单词</h3>

                    <p class="m-text"> 深化单词理解
                        上下文学习：将单词放入句子或短文中，理解其在具体语境中的含义和用法。并更好地理解其背后的文化和语境。
                        词根词缀：学习词根和词缀的知识，更容易记忆和推测新单词的含义。
                        同义词和反义词：并在写作和阅读中更灵活地运用。</p>


                    <div>
                        <div class="ui grid">
                            <div class="twelve wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img alt=""  class="ui avatar image" src="../static/images/mio1.png"> <!-- 头像 -->

                                        <div class="content">
                                            <a href="#" class="header">长野原美绪</a> <!-- 名字 -->
                                        </div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon"></i>2024-2-15
                                    </div> <!-- 时间 -->
                                    <div class="item">
                                        <i class="eye icon"></i>55555
                                    </div> <!-- 观看数 -->

                                </div>
                            </div>
                            <div class="right aligned middle aligned four wide  column m-padded-mini m-text-thin">
                                <a href="#" target="_blank" class="ui teal mini basic  left pointing label">认知升级</a>
                            </div>
                        </div>
                        <div class="row">
                            <div class="column">
                                <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">方法论
                                    <div class="detail">23</div>
                                </a>
                            </div>
                        </div>
                    </div>



                </div>
                <!--                        首图-->
                <div class="ui five wide column">
                    <div class="items">

                        <img src="../static/images/mio1.png"
                             class="ui round image" alt="" style="width: 130px">
                    </div>
                </div>
            </div>
        </div>
        <div class="ui   vertical segment m-padded-tb-large ">]

            <div class="ui mobile reversed stackable   grid">

                <div class="ui eleven wide column">


                    <h3 class="ui header">深化单词</h3>

                    <p class="m-text"> 深化单词理解
                        上下文学习：将单词放入句子或短文中，理解其在具体语境中的含义和用法。并更好地理解其背后的文化和语境。
                        词根词缀：学习词根和词缀的知识，更容易记忆和推测新单词的含义。
                        同义词和反义词：并在写作和阅读中更灵活地运用。</p>


                    <div>
                        <div class="ui grid">
                            <div class="twelve wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img alt=""  class="ui avatar image" src="../static/images/mio1.png"> <!-- 头像 -->

                                        <div class="content">
                                            <a href="#" class="header">长野原美绪</a> <!-- 名字 -->
                                        </div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon"></i>2024-2-15
                                    </div> <!-- 时间 -->
                                    <div class="item">
                                        <i class="eye icon"></i>55555
                                    </div> <!-- 观看数 -->

                                </div>
                            </div>
                            <div class="right aligned middle aligned four wide  column m-padded-mini m-text-thin">
                                <a href="#" target="_blank" class="ui teal mini basic  left pointing label">认知升级</a>
                            </div>
                        </div>
                        <div class="row">
                            <div class="column">
                                <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">方法论
                                    <div class="detail">23</div>
                                </a>
                            </div>
                        </div>
                    </div>



                </div>
                <!--                        首图-->
                <div class="ui five wide column">
                    <div class="items">

                        <img src="../static/images/mio1.png"
                             class="ui round image" alt="" style="width: 130px">
                    </div>
                </div>
            </div>
        </div>
        <div class="ui   vertical segment m-padded-tb-large ">]

            <div class="ui mobile reversed stackable   grid">

                <div class="ui eleven wide column">


                    <h3 class="ui header">深化单词</h3>

                    <p class="m-text"> 深化单词理解
                        上下文学习：将单词放入句子或短文中，理解其在具体语境中的含义和用法。并更好地理解其背后的文化和语境。
                        词根词缀：学习词根和词缀的知识，更容易记忆和推测新单词的含义。
                        同义词和反义词：并在写作和阅读中更灵活地运用。</p>


                    <div>
                        <div class="ui grid">
                            <div class="twelve wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img alt=""  class="ui avatar image" src="../static/images/mio1.png"> <!-- 头像 -->

                                        <div class="content">
                                            <a href="#" class="header">长野原美绪</a> <!-- 名字 -->
                                        </div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon"></i>2024-2-15
                                    </div> <!-- 时间 -->
                                    <div class="item">
                                        <i class="eye icon"></i>55555
                                    </div> <!-- 观看数 -->

                                </div>
                            </div>
                            <div class="right aligned middle aligned four wide  column m-padded-mini m-text-thin">
                                <a href="#" target="_blank" class="ui teal mini basic  left pointing label">认知升级</a>
                            </div>
                        </div>
                        <div class="row">
                            <div class="column">
                                <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">方法论
                                    <div class="detail">23</div>
                                </a>
                            </div>
                        </div>
                    </div>



                </div>
                <!--                        首图-->
                <div class="ui five wide column">
                    <div class="items">

                        <img src="../static/images/mio1.png"
                             class="ui round image" alt="" style="width: 130px">
                    </div>
                </div>
            </div>
        </div>
<!--*/-->
    </div>

        <div class="ui attached bottom segment  ">
            <div class="ui middle aligned two column grid">
                <div class="  column">
                    <a href="#" class="ui teal basic button" th:href="@{'/tags?page=' + ${page.number - 1} + '&id=' + ${activeTagId}}" th:unless="${page.last}">上一页</a>
                </div>
                <div class=" right aligned column">
                    <a href="#" class="ui teal basic button" th:href="@{'/tags?page=' + ${page.number + 1} + '&id=' + ${activeTagId}}" th:unless="${page.last}">下一页</a>
                </div>
            </div>
        </div>


</div>

<br>
<br>

<footer th:replace="~{_fragments :: footer}" class="ui inverted vertical segment m-padded-tb-massive  ">



    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">

            <div class="three wide column">

                <div class="middle aligned">

                    <img src="../static/images/mio1.png"
                         class="ui middle aligned round image" alt="" style="width: 150px">
                </div>


            </div>
            <div class="three wide column ">
                <h4 class ="ui inverted header" >最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">等待填充1</a>
                    <a href="#" class="item">等待填充2</a>
                    <a href="#" class="item">等待填充3</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class ="ui inverted header">github</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">yonghuname@github.com</a>
                    <a href="#" class="item">等待填充</a>
                    <a href="#" class="item">等待填充</a>
                </div>
            </div>

            <div class="seven wide column">

                <h4 class ="ui inverted header">博客介绍</h4>

                <p  class="m-text-thin m-text-spaced m-opacity-mini ">这是我的个人博客,会分享文章，也可能被拿来做todolist</p>

            </div>
        </div>


        <div class="ui inverted section divider m-padded-tb-">
        </div> <p class="m-text-thin m-text-spaced m-opacity-mini">All rights reserved  </p>
    </div>
</footer>

</body>

<!--<script  src="https://cdn.jsdeliver.net/semantic-ui/2.2.4/semantic.min.js"></script>-->
<!--<script  src="https://cdn.jsdeliver.net/npm/jquery@3.2/dist/jquery.min.js"></script>-->

</html>

<script>


    $('.menu.toggle').click(function() {
        $('.m-item').toggleClass('m-mobile-hidden');
    });

    $('#likesButton').popup( {
        popup :$('.likesImg.popup'),
        on : "click",
        position:"bottom center"
    });


</script>